import sys
import  time
sys.path.append('..')
from  ter import   *

class TModbusComponent(TIotComponent):
    def __init__(self,ter:TIotTer):
        super().__init__(ter)
    def getTime(self, txt):
        return f"compCode:{self.compCode},time:{time.time()},txt:{txt}"
iotTer.registComponent('modbus' , TModbusComponent)